<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Hoonur.com allows you to connect with the right professionals in the entertainment industry</title>
<link rel="stylesheet" type="text/css" href="css/style.css">

<!--<link rel="stylesheet" type="text/css" media="screen" href="css/screen.css" />-->

<link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css" media="screen" title="no title" charset="utf-8" />
		<link rel="stylesheet" href="css/template.css" type="text/css" media="screen" title="no title" charset="utf-8" />
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>
		<script src="js/jquery.validationEngine-en.js" type="text/javascript"></script>
		<script src="js/jquery.validationEngine.js" type="text/javascript"></script>
        <script type='text/javascript' src='tt/js/bridge/bridge.js'></script>
<script type='text/javascript' src='tt/js/spinners/spinners.js'></script>
<script type='text/javascript' src='tt/js/tipped/tipped.js'></script>
<link rel="stylesheet" type="text/css" href="tt/css/tipped.css" />
<link rel="stylesheet" type="text/css" href="tt/css/style.css" />
        <script>	
		$(document).ready(function() {
			$("#register").validationEngine()
					
			});		
	</script>
<style type="text/css">

#register .error{  margin-left: 0px; }
</style></head>
<body>
<div id="wrapper">
<?php 
$title="Register";
include("header.php"); 
?>
<div id="title">
	Register FREE.<br />
    <span>Promote yourself, your talent and your services</span>
</div>
<div id="regcontent">
	<div class="leftregcontent">
    	<div>
        <form name="register" id="register" action="register-process.php" method="post">
        	<table border="0" cellpadding="2px">
            	<tr>
                	<td colspan="5" style="color:#666666;">All fields are mandatory</td>
                </tr>
            	<tr>
                	<td>1.</td>
                    <td>Name:</td>
                    <td></td>
                    <td><input type="text" name="fname" id="fname" size="20" class="validate[required] textbox demonstration tipped rightmost" title="Enter your first name Eg. Rohan" data-tipped-options="skin: 'salmon', hook: 'rightmiddle', containment: { flip: true }" ></td>
                    <td><input type="text" name="lname" size="20" id="lname" class="validate[required] textbox demonstration tipped rightmost" title="Enter your first name Eg. Mathur" data-tipped-options="skin: 'salmon', hook: 'rightmiddle', containment: { flip: true }"></td>
                </tr>
                <tr>
                	<td>2.</td>
                    <td>Email Id:</td>
                    <td></td>
                    <td colspan="2"><input type="text" name="emailid" id="emailid" size="20" class="validate[required,custom[email]] textbox_big demonstration tipped rightmost" title="Eg. Rohan@gmail.com" data-tipped-options="skin: 'salmon', hook: 'rightmiddle', containment: { flip: true }"></td>                    
                </tr>
                <tr>
                	<td></td>
                    <td></td>
                    <td></td>
                    <td colspan="2">this email id will be used to log into your account and for all communications<br />
                    <?php if(isset($_REQUEST['er']) && $_REQUEST['er']=='1')
					{
					?>
                    <div id="error">Email already exists. If you are a existing user, <a href="login.php">click here</a> to login.</div>
                    <?php } ?>
                    </td>
                </tr>
                <tr>
                	<td>3.</td>
                    <td width="130px">Create Password:</td>
                    <td></td>
                    <td><input type="password" name="password" size="20" id="password" class="validate[required,length[6,11]] textbox demonstration tipped rightmost" title="Use letters and numbers or combination of both" data-tipped-options="skin: 'salmon', hook: 'rightmiddle', containment: { flip: true }"></td>
                    <td></td>
                </tr>
                <tr>
                	<td>4.</td>
                    <td>Re-enter Password:</td>
                    <td></td>
                    <td><input type="password" name="repassword" id="repassword" size="20" class="validate[required,equals[password]] textbox "></td>
                    <td></td>
                </tr>
                <tr>
                	<td>5.</td>
                    <td>Birth Date:</td>
                    <td></td>
                    <td><select name="dd" id="dd" class="validate[required]">
									<option value="">DD</option>
									<?php
										for($dd=1;$dd!=10;$dd++)
										{	

											echo "<option>0".$dd."</option>";
										}
										for($d=10;$d!=32;$d++)
										{
											echo "<option>".$d."</option>";
										}
									?>
								</select>

								<select name="mm" id="mm" class="validate[required]">
									<option value="">MM</option>
									<?php
										for($m=1;$m!=10;$m++)
										{	

											echo "<option>0".$m."</option>";
										}
										for($n=10;$n!=13;$n++)
										{	

											echo "<option>".$n."</option>";
										}
									?>
								</select>

								<select name="yy" id="yy" class="validate[required]">
									<option value="">YYYY</option>
									<?php
										for($y=2011;$y!=1899;$y--)
										{
											echo "<option>".$y."</option>";
										}
									?>
								</select>
                        </td>
                    <td></td>
                </tr>
                <tr>
                	<td>6.</td>
                    <td>Gender:</td>
                    <td></td>
                    <td><input type="radio" name="gender" id="male" value="Male" class="validate[required] radio"> Male &nbsp;&nbsp;&nbsp;&nbsp;
							<input type="radio" name="gender" id="female" value="Female" class="validate[required] radio"> Female
</td>
                    <td></td>
                </tr>
                <tr>
                	<td>7.</td>
                    <td>Location:</td>
                    <td></td>
                    <td><select name="location" id="location" class="required" class="validate[required]">
							<option value="">Select</option>
                            <?php $sql=mysql_query("select * from cities"); 
								while($row=mysql_fetch_array($sql))
								{
							?>
                            	<option value="<?php echo $row['city_id']; ?>"><?php echo $row['city_name']; ?></option>
                            <?php 
								}
							?>
						</select>
                    </td>
                    <td></td>
                </tr>
                <tr>
                	<td colspan="5"><br />By clicking on "Register" you are agreeing to the "<a href="#">Terms of Use</a>" and the "<a href="#">Privacy Policy</a>"</td>
                </tr>
                <tr>
                	<td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td><?php
							function randomPrefix($length)
							{
							$random= "";

							srand((double)microtime()*1000000);

							$data = "AbcDE123IJKLMN67QRSTUVWXYZ";
							$data .= "aBCdefghijklmn123opq45rs67tuv89wxyz";
							$data .= "0FGH45OP89";

							for($i = 0; $i < $length; $i++)
							{
							$random .= substr($data, (rand()%(strlen($data))), 1);
							}
						?>
							<input type="hidden" value="<?php echo $random;?>" name="uniqueid" id="uniqueid">
						<?php
							}
							randomPrefix(32); 

						?></td>
                </tr>
                <tr>
                	<td></td>
                    <td></td>
                    <td></td>
                    <td>
                    <div class="button">
                    	<ul>
                        <li class="leftBtn"></li>
                    	<li class="btnClass"><button type="submit">Register</button></li>
                        <li class="rightBtn"></li>
                    </div>
                    </td>
                    <td></td>
                </tr>
            </table>
        </form>
        </div>
	</div>
    <div class="rightregcontent">
    	
	</div>
</div>
<div style="clear:both;"></div>    
<div id="add">
	<img src="images/addsense.jpg" />
</div>

<div>
<?php include("footer.php"); ?>
</div>
</div>
</body>
</html>